import request from '@/utils/request'

// 查询食材采购记录模块列表
export function listFoodPurchase(query) {
  return request({
    url: '/kindergarten/foodPurchase/list',
    method: 'get',
    params: query
  })
}

// 查询食材采购记录模块详细
export function getFoodPurchase(id) {
  return request({
    url: '/kindergarten/foodPurchase/' + id,
    method: 'get'
  })
}

// 新增食材采购记录模块
export function addFoodPurchase(data) {
  return request({
    url: '/kindergarten/foodPurchase',
    method: 'post',
    data: data
  })
}

// 修改食材采购记录模块
export function updateFoodPurchase(data) {
  return request({
    url: '/kindergarten/foodPurchase',
    method: 'put',
    data: data
  })
}

// 删除食材采购记录模块
export function delFoodPurchase(id) {
  return request({
    url: '/kindergarten/foodPurchase/' + id,
    method: 'delete'
  })
}
